<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>
<script>
	function check(){
		var role = document.getElementById("role");
		var info = document.getElementById("info");
		var flag = 1;
		if(role.value == ""){
			document.getElementById("roleTips").style.display="inline";
			flag = 0;
		}
		if(info.value == ""){
			document.getElementById("infoTips").style.display="inline";
			flag = 0;
		}

		
		if(flag==1)return true;
		else return false;
	}
	
</script>
<style>
.tips{
	display:none;
	color:red;
	font-size: 12px;
}
.in{
	width:100%;
}
textarea{
	width:100%;
	height:100px;
}
form{
	margin:0 auto;
	width:450px;
}
.tableHead{
	width:100px;
}
.checkboxLabel{
	display: block;
	float: left;
	width: 90%;
	height:20px;
}
input{
	margin: 0;
	padding:0;
	width: 10%;
	float: left;
	height:20px;
}
</style>
</head>

<body>
	<form action="role-admin!save.action" method="post" name="form" onsubmit="return check()">
	<input type="hidden" name="id" value="${id }" />
	<table>
		<tr>
			<th colspan="3">修改角色</th>
		</tr>
		<tr>
			<td class="tableHead">角色名称：</td>
			<td style="width:225px"><input type="text" name="name" value="${name }" id="role" maxlength="26" class="in" /></td>
			<td class="tips" id="roleTips" >请输入角色名称！</td>
		</tr>
		<tr>
			<td class="tableHead">描述信息：</td>
			<td style="width:225px"><input type="text" name="summary" value="${summary }" id="info" maxlength="26" class="in" /></td>
			<td class="tips" id="infoTips">请输入描述信息！</td>
		</tr>
		<tr>
			<td></td>
			<td style="width:225px">
				
				<s:checkboxlist name="checkedAuthIds" list="allAuthorityList" listKey="id"
										listValue="name" />
			</td>
		</tr>
		
		
		<tr>
			<td class="tableHead"></td>
			<td><input type="submit" value="提交" style="width:15%;"/><input type="reset" value="重置" style="width:15%;"/></td>
			<td style="width:110px"></td>
		</tr>
	</table>
	</form>
</body>
</html>


